package com.cn.designpatterns.ex.concrete.state;

/**
 * @author: zhangyi
 * @date: 2019/1/9 16:16
 * @description:
 */
public class Context {
    private State state;

    public Context(State state) {
        this.state = state;
    }

    public void setState(State state){
        this.state = state;
    }
    public void requestHandle(){
        state.handle(this);
    }
}
